/**
 * 메인 페이지 스크립트
 * 작성일 : 2014.11.04
 * 작성자 : 신재업
 */

function general(){
	document.getElementById("board").onclick=function(){
		location.href = "board_main.jsp";
	}
		document.getElementById("guest").onclick=function(){
		location.href = "guest_main.jsp";
	}
	document.getElementById("join").onclick=function(){
		location.href = "join_main.jsp";
	}
	document.getElementById("title").onclick=function(){
		location.href = "main.jsp";
	}
	document.getElementById("member").onclick=function(){
		location.href = "member_main.jsp";
	}
	
}
function Member_general(){
	document.getElementById("board").onclick=function(){
		location.href = "board_main.jsp";
	}
	document.getElementById("guest").onclick=function(){
		location.href = "guest_main.jsp";
	}
	document.getElementById("title").onclick=function(){
		location.href = "main.jsp";
	}
	document.getElementById("member").onclick=function(){
		location.href = "member_main.jsp";
	}
	document.getElementById("logout").onclick=function(){
		location.href="../logout.jsp";		
	}
	document.getElementById("member_manage").onclick=function(){
		location.href="./modify_main.jsp";		
	}
}


function init(){
	general();	
	document.getElementById("login").onclick=function(){
		location.href = "login_main.jsp";
	}
}
function login_main_init(){
	Member_general();
	
}


function boardinit(){
	general();
	document.getElementById("login").onclick=function(){
		location.href = "login_main.jsp?re=board";
	}
}

function login_boardinit(){
	Member_general();
		
}

function logininit(){
	general();
	document.getElementById("login").onclick=function(){
		location.href = "login_main.jsp";
	}
}
function guestinit(){
	general();
	document.getElementById("login").onclick=function(){
		location.href = "login_main.jsp?re=guest";
	}
}

function login_guestinit(){
	Member_general();

}
function joininit(){
	general();
	document.getElementById("login").onclick=function(){
		location.href = "login_main.jsp";
	}
}
function member_manage(){
	Member_general();
}
function memberinit(){
	general();
	document.getElementById("login").onclick=function(){
		location.href = "login_main.jsp?re=member";
	}
}

function login_memberinit(){
	Member_general();

}